﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using System.Text;
using System.Xml;

namespace WebTest
{
    public partial class _1111 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            HttpCookie user = new HttpCookie("name", "王飞");
            Response.Cookies.Add(user);
            user.Expires = DateTime.Now.AddMinutes(4);
            Response.Write(Request.Cookies["name"].Value);

            XmlDocument xd = new XmlDocument();
            xd.LoadXml("<Person><name>诸葛亮</name></Person>");
            Response.Write(Server.HtmlEncode(xd.DocumentElement.InnerXml));
        }
    }
}